import { request, METHOD } from '@/utils/request';

// 获取用户列表
export const listUserAirplanRelationApi = (params) => {
  return request('/rbac/rbacUserAirplaneRelation/listUserAirplanRelation', METHOD.GET, params);
};

// 添加用户与飞机关系
export const addlistUserAirplanRelationApi = (params) => {
  return request('/rbac/rbacUserAirplaneRelation/addUserAirplanRelation', METHOD.POST, params);
};
// 删除用户与飞机关系
export const dellistUserAirplanRelationApi = (id) => {
  return request(`/rbac/rbacUserAirplaneRelation/delUserAirplanRelation?id=${id}`, METHOD.POST);
};

// 获取机队与飞机关系列表
export const getTailNumberAndFleetApi = (params) => {
  return request('/rbac/rbacUserAirplaneRelation/getTailNumberAndFleet', METHOD.GET, params);
};

